home *** CD-ROM | disk | FTP | other *** search
/ STraTOS 1997 April & May / STraTOS 1 - 1997 April & May.iso / CD01 / INTERNET / SITES / RAND / UNSPLIT / text0903.txt < prev    next >
Encoding:
Text File  |  1997-02-06  |  2.0 KB  |  52 lines

  1. Sorry all for the delay in replying... PC hassles...
  2.  
  3. At 10:18 AM 9/9/96 +0200, Johan Klockars wrote:
  4. >I spent a couple of hours yesterday working on the drawing routines for
  5. >GEM-DEU and managed to increase the speed quite a lot.
  6.  
  7. Yep, it looks good. :)
  8.  
  9. >Replacing (almost) all the floating point calculations with fixed point
  10. >code made the general line drawing and especially the vertex mode (which
  11. >used a floating point square root) a lot faster.
  12. >A trivial rejection test for lines/circles outside the displayed part of
  13.  
  14. Yes, that does sound like a good idea...
  15.  
  16. >the map means that scrolling through a zoomed map by dragging the sliders
  17. >(if you're using an AES that supports it) now works very well.
  18.  
  19. Hehe. I'll have to try this... :)
  20.  
  21. >Some other things that I'll look into later are:
  22. >- Redrawing only the necessary parts.
  23. >   For scrolling and minor updates this should increase the speed a _lot_.
  24. >   Naturally, the rectangle list should be used as well.
  25.  
  26. This would be nice, as I've got non-modal windowed dialogues in the latest
  27. version, yet the map draws all over it at the moment...
  28.  
  29. >- Blitting small circles etc instead of drawing them.
  30. >   Compare the drawing speed between the 'Things' mode which draws objects
  31. >   as circles and the others that draw them as two crossing lines...
  32. >- Using special code for horizontal and vertical lines.
  33. >- Presorting coordinates to make the clipping faster.
  34. >- Precalculating screen coordinates.
  35. >- Off screen drawing with specialized routines.
  36.  
  37. Yep, all seem like good ideas to me... 
  38.  
  39. >I'd appreciate if some of you who're used to working with GEM-DEU could
  40. >take a look at the test version, testdeu.lzh, that I've uploaded to my site.
  41. >I haven't noticed any problems myself, but I've only tested it a little.
  42.  
  43. I've only had a very quick look, but it looks great.
  44.  
  45. >Please, note that this test version is not a full GEM-DEU.
  46. >Just about the only thing that works is viewing a map in the different modes.
  47.  
  48. And select, in all modes except line, IIRC...
  49.  
  50. Anthony
  51.  
  52.